package com.jfire.codejson.methodinfo.impl.write.array;

import java.lang.reflect.Method;

public class ReturnArrayWrapperMethodInfo extends AbstractWriteArrayMethodInfo
{
    public ReturnArrayWrapperMethodInfo(Method method)
    {
        super(method);
        
    }

    @Override
    protected void writeOneDim(Class<?> rootType, String bk)
    {
        if (rootType.equals(Character.class) || rootType.equals(String.class))
        {
            str += bk + "cache.append('\"').append(array1[i1]).append('\"').append(',');\n";
        }
        else
        {
            str += bk + "cache.append(array1[i1]).append(',');\n";
        }
    }
    
}
